<?php

namespace app\admin\model;

use think\Model;

class Role extends Model
{
    public static function allRole($rid)
    {
        foreach ($rid as $val){
            $result = parent::get($val)->getData()['name'];
            $role[$val] = $result;
        }
        return $role;
    }
}
